package com.itheima.day04.myinnerclass.test6;

public class Test {
    public static void main(String[] args) {
        ShowHandlerDemo(() -> {
            System.out.println("我是帅哥，\n一个大帅哥，对就电影院的荧幕那么大");
        });
        ShowHandlerDemo(new ShowHandler() {
            @Override
            public void show() {
                System.out.println("低调点，\n帅不帅我自己能不知到吗？\n------我不是帅神");
            }
        });
    }

    public static void ShowHandlerDemo(ShowHandler showHandler){
        showHandler.show();
    }
}

interface ShowHandler {
    public abstract void show();
}
